package design_patterns;

public class exce {

    public String   test(){
        try {
            System.out.println(5/0);
            return "test";
        }catch(Exception e){
              return "exception occurred";
        }finally {
            System.out.println("finally block executed");
            return "finally block executed";
        }
    }

    public static void main(String[] args) {
        exce test = new exce();
        System.out.println(test.test());
    }
}
